package com.cas.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cas.typeHandler.MyLocalDateTypeHandler;

import java.time.LocalDateTime;

/**
 * @description:
 * @author: xianglong
 * @create: 2025-02-25 09:56
 **/
@TableName("cas_directory_structure")
public class CasDirectoryStructureDO {

    /**
     * 主键
     */
    private String id;
    /**
     * 父节点
     */
    private String parentId;
    /**
     * 节点名称
     */
    private String name;
    /**
     * 是否叶子节点
     */
    private boolean isLeaf;
    /**
     * 创建时间
     */
    @TableField(value = "create_time", typeHandler = MyLocalDateTypeHandler.class)
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time", typeHandler = MyLocalDateTypeHandler.class)
    private LocalDateTime updateTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public boolean isLeaf() {
        return isLeaf;
    }

    public void setLeaf(boolean leaf) {
        isLeaf = leaf;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
